<template>
  <Viewer :value="value" />
</template>

<script lang="ts" setup>
import { Viewer } from "@bytemd/vue-next";
import "bytemd/dist/index.css";
import "highlight.js/styles/vs.css";
import { defineProps, withDefaults } from "vue";

// 定义组件类型
interface Props {
  value: string;
}

// 使用defineProps接收传递参数
const props = withDefaults(defineProps<Props>(), {
  value: () => "",
});
</script>

<style>
// 将scoped去掉即可
.bytemd-toolbar-icon.bytemd-tippy.bytemd-tippy-right:last-child {
  display: none;
}
</style>
